package com.jiangjiang.eshop.logistics.service;

import com.jiangjiang.eshop.commodity.dto.GoodsSkuDTO;
import com.jiangjiang.eshop.order.dto.OrderInfoDTO;
import com.jiangjiang.eshop.order.dto.OrderItemDTO;

import java.text.ParseException;
import java.util.Date;

/**
 * @ClassName LogisticsFacadeService
 * @Description 物流中心对外提供的接口
 * @Author jhw
 * @Date 2021/5/24 22:52
 * @Version 1.0
 **/
public interface LogisticsFacadeService {

    /**
     * 计算运费
     * @param order 订单
     * @param orderItem 订单明细数据
     * @return
     */
    Double calculateFreight(OrderInfoDTO order, OrderItemDTO orderItem);


    /**
     * 获取订单的签收时间
     * @param orderId 订单id
     * @param orderNo 订单编号
     * @return 签收时间
     */
    Date getSignedTime(Long orderId, String orderNo) throws Exception;

}
